package com.atguigu01.oop;

public class Phone {
    String brand;
    double price;

//    public Phone(String brand, double price) {
//        this.brand = brand;
//        this.price = price;
//    }

    public void Call(){
        System.out.println("calling");
    }
    public  void Text(String message){
        System.out.println(message);
    }

    @Override
    public String toString() {
        return "Phone{" +
                "brand='" + brand + '\'' +
                ", price=" + price +
                '}';
    }
}
